<template>
	<view class="page">
		<status-bar title='提现说明'></status-bar>
		<view class="inviteRule"  v-if='withdrawal_rules'>
			<!-- <view class="title">
				<view style="font-size: 30upx;">提现说明</view>
			</view> -->
			 <view class="content">
			 	<view class="list_sing" v-for="(r,i) in withdrawal_rules" :key='i'>
					<text style="font-size: 40upx;">{{i+1}}、</text>
					{{r}}
				</view>
			 </view>
		</view>
		<view @click="returnBtn" class="btn">
			<view class="return thmeBorder thmeColor" :style="{'--color': color}">
				返回
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				color: getApp().globalData.color,
				withdrawal_rules: ''
			}
		},
		onShow() {
			this.withdrawal_rules = uni.getStorageSync('startUp').withdrawal_rules
			if(this.withdrawal_rules){
				this.withdrawal_rules = this.withdrawal_rules.split('\n')
			}
			
		},
		onShareAppMessage(option) {
			let shareData = uni.getStorageSync('shareData');
			let vid = uni.getStorageSync('vid');
			return {
				title: shareData.title,
				desc: shareData.desc,
				path: '/pages/index/index?share_v_id=' + vid+'&pageType=99',
				imageUrl: shareData.imageUrl
			}
		},
		methods: {
			returnBtn(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.page{
		min-height: 100vh;
		background-color: #F8F8F8;
	}
	.inviteRule{
		background-color:#FFFFFF ;
	}
	.empty{color: red;}
	.title{
		width: 100%;
		height: 100upx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: bold;
		border-bottom: 1px solid #F2F2F2;
		color: #121212;
	}
	.content{
		padding: 0 20upx;
	}
	.content view{
		height: 100upx;
		display: flex;
		align-items: center;
		color: #AFAFAF;
	}
	.list_sing{
		border-bottom: 1px solid #F2F2F2;
		&:nth-last-of-type(1){
			border: none;
		}
	}
    .btn{
		margin-top: 100upx;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.return{
		width: 350upx;
		height: 72upx;
		border-radius: 5px;
		text-align: center;
		line-height: 72upx;
		font-size: 30upx;
	}
</style>
